/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.etop.weibo.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * sayId -- s_id
 * commentId -- c_id
 * userId -- u_id
 * @author jansing
 * lz_jansing@163.com
 */
@Entity
@Table(name="t_praise")
public class Praise {
    private int id;
    private int sayId;
    private int commentId;
    private int userId;

    public Praise() {
    }
    
    public Praise(int userId, int sayId, int commentId){
        this.sayId = sayId;
        this.commentId = commentId;
        this.userId = userId;
    }

    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name="s_id")
    public int getSayId() {
        return sayId;
    }

    public void setSayId(int sayId) {
        this.sayId = sayId;
    }

    @Column(name="c_id")
    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }
    
    @Column(name="u_id")
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }
    
    
}
